﻿using Stee.CAP8.MessageBus.Sagas.Messages.Messages;
using System;

namespace Stee.CAP8.MessageBus.Sagas.Core.Messages
{
    public class OriginalTransportMessage
    {
        /// <summary>
        /// Gets the originally received transport message
        /// </summary>
        public TransportMessage TransportMessage { get; }

        /// <summary>
        /// Creates the wrapper
        /// </summary>
        public OriginalTransportMessage(TransportMessage transportMessage)
        {
            TransportMessage = transportMessage ?? throw new ArgumentNullException(nameof(transportMessage));
        }
    }
}